package com.example.myapplication.adp;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ImageView;

import com.example.myapplication.R;
import com.example.myapplication.util.GlideUtil;
import com.ms.banner.holder.BannerViewHolder;

public class CustomBannerHolder implements BannerViewHolder<String> {

    @Override
    public View createView(Context context, int position, String data) {
        View view = LayoutInflater.from(context).inflate(R.layout.banner_item, null);
        ImageView imageView = (ImageView) view.findViewById(R.id.itemImg);
        GlideUtil.loadImg(data,imageView);

        return view;
    }
}
